<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>OEM信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <meta http-equiv="Pragma"   content= "no-cache" /> 
    <meta http-equiv= "Cache-Control"   content= "no-cache" /> 
    <meta http-equiv= "Expires"   content= "0" />

    <link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/layui/style/admin.css" media="all" />

</head>

<body>
    <form class="layui-form" lay-filter="enterprise_form" action="">
        <input type="hidden" name="id" th:value="${oemInfo.id}"/>
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
          <legend>基本信息</legend>
            <div class="layui-form-item " >
                <label class="layui-form-label">名称</label>
                <div class="layui-input-block">
                    <input type="text" readonly required name="name" th:value="${oemInfo.name}"  lay-verify="required"  placeholder="名称" autocomplete="off" class="layui-input">
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>域名信息</legend>
            <div class="layui-form-item " >
                <label class="layui-form-label">管理后台域名</label>
                <div class="layui-input-block">
                    <input type="text" readonly  name="adminDomain" th:value="${oemInfo.adminDomain}"    placeholder="管理后台域名" autocomplete="off" class="layui-input">
                </div>
            </div>
        <div class="layui-form-item " >
            <label class="layui-form-label">代理商APP域名</label>
            <div class="layui-input-block">
                <input type="text" readonly  name="agencyDomain" th:value="${oemInfo.agencyDomain}"    placeholder="代理商APP域名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item " >
            <label class="layui-form-label">商户APP域名</label>
            <div class="layui-input-block">
                <input type="text" readonly  name="enterpriseDomain" th:value="${oemInfo.enterpriseDomain}"    placeholder="商户APP域名" autocomplete="off" class="layui-input">
            </div>
        </div>
        </fieldset>

        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>奖励设置</legend>
        <div class="layui-form-item " >
            <label class="layui-form-label">等级推荐奖励(/百分比例)</label>
            <div class="layui-input-block">
                <input type="number"   name="levelProfit" th:value="${oemInfo.levelProfit}"   placeholder="等级推荐返佣" autocomplete="off" class="layui-input">
            </div>
        </div>
        </fieldset>

        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend style="margin-bottom: 10px;">微信服务商信息设置</legend>
            <div class="layui-form-item " >
                <label class="layui-form-label">APPID</label>
                <div class="layui-input-block">
                    <input type="text"   name="appId" th:value="${oemInfo.appId}"   placeholder="微信服务商APPID" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item " >
                <label class="layui-form-label">SECRET</label>
                <div class="layui-input-block">
                    <input type="text"   name="secret" th:value="${oemInfo.secret}"   placeholder="微信服务商APPID" autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item " >
                <label class="layui-form-label">API_KEY</label>
                <div class="layui-input-block">
                    <input type="text"   name="apiKey" th:value="${oemInfo.apiKey}"   placeholder="微信服务商API_KEY" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item " >
                <label class="layui-form-label">MCHID(商户号)</label>
                <div class="layui-input-block">
                    <input type="text"   name="mchId" th:value="${oemInfo.mchId}"   placeholder="微信服务商MCHID(商户号)" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item" >
                <label class="layui-form-label">服务商证书pk12格式</label>
                <div class="layui-input-block face_file">
                    <div class="layui-upload-list">
                        <input type="hidden" name="apiclientCertp12" th:value="${oemInfo.apiclientCertp12}" class="face_file_input">
                        <span class="layui-upload-img face_file_img" ></span>
                        <p class="fade_file_tip"></p>
                    </div>
                    <button type="button" class="layui-btn layui-form-label face_file_btn" >
                        <span th:if="${oemInfo.apiclientCertp12==null}">上传证书</span>
                        <span th:if="${oemInfo.apiclientCertp12!=null}">证书重传</span>
                    </button>

                </div>
            </div>

            <div class="layui-form-item " >
                <label class="layui-form-label">APIv3KEY</label>
                <div class="layui-input-block">
                    <input type="text"   name="api3Key" th:value="${oemInfo.api3Key}"   placeholder="微信服务商API3_KEY" autocomplete="off" class="layui-input">
                </div>
            </div>

        </fieldset>


        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend style="margin-bottom: 10px;">支付宝服务商信息配置</legend>

            <div class="layui-form-item " >
                <label class="layui-form-label">服务商PID</label>
                <div class="layui-input-block">
                    <input type="text"   name="aliProviderId" th:value="${oemInfo.aliProviderId}"   placeholder="支付宝服务商ID" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item " >
                <label class="layui-form-label">应用APPID</label>
                <div class="layui-input-block">
                    <input type="text"   name="aliAppId" th:value="${oemInfo.aliAppId}"   placeholder="支付宝应用ID" autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item " >
                <label class="layui-form-label">授权回调地址</label>
                <div class="layui-input-block">
                    <input type="text"   name="aliCallBackUrl" th:value="${oemInfo.aliCallBackUrl}"   placeholder="授权回调地址" autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item" >
                <label class="layui-form-label">应用私钥上传</label>
                <div class="layui-input-block face_file">
                    <div class="layui-upload-list">
                        <input type="hidden" name="aliAppKey" th:value="${oemInfo.aliAppKey}" class="face_file_input">
                        <span class="layui-upload-img face_file_img" ></span>
                        <p class="fade_file_tip"></p>
                    </div>
                    <button type="button" class="layui-btn layui-form-label face_file_btn" >
                        <span th:if="${oemInfo.aliAppKey==null}">上传私钥</span>
                        <span th:if="${oemInfo.aliAppKey!=null}">重传</span>
                    </button>

                </div>
            </div>

            <div class="layui-form-item" >
                <label class="layui-form-label">支付宝公钥上传</label>
                <div class="layui-input-block face_file">
                    <div class="layui-upload-list">
                        <input type="hidden" name="aliPublicKey" th:value="${oemInfo.aliPublicKey}" class="face_file_input">
                        <span class="layui-upload-img face_file_img" ></span>
                        <p class="fade_file_tip"></p>
                    </div>
                    <button type="button" class="layui-btn layui-form-label face_file_btn" >
                        <span th:if="${oemInfo.aliPublicKey==null}">上传公钥</span>
                        <span th:if="${oemInfo.aliPublicKey!=null}">重传</span>
                    </button>

                </div>
            </div>

        </fieldset>

        <fieldset th:if="${oemInfo.type=='SHARE'}" class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>共享用户商户费率设置</legend>
            <div class="layui-form-item " >
                <label class="layui-form-label">费率阀值</label>
                <div class="layui-input-block">
                    <input type="number"   name="shareRate" th:value="${oemInfo.shareRate}"   placeholder="费率阀值" autocomplete="off" class="layui-input">
                </div>
            </div>
        </fieldset>


        <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="modify_ok">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>

    </div>
</form>

<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/js/oem/info.js"></script>

</body>
</html>